#!/usr/bin/env bash

PREFIX=$(cd "$(dirname "$0")"; pwd)
cd $PREFIX
source config.sh
function load {
#    psql -U $PSQL_USER -d $PSQL_DB -h $PSQL_HOST -p $PSQL_PORT -c "DROP SCHEMA $1 CASCADE;CREATE SCHEMA $1"
    psql $PSQL_URL -f $PREFIX/table/$PSQL_DB/$1.sql
}

load public

